package org.sean.framework.kafka;

import org.sean.framework.kafka.producer.KafkaStringProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class KafKaController {

    @Autowired
    KafkaStringProducer producer;

    @GetMapping("/test")
    public String test() {
        producer.send("kf", "key-t", "v-t");
        return "te";
    }
}
